/*
键位图（帮助）
*/
keyFunc_keyBoard(){
    IfWinExist, Key Board
    {
        ControlSetText, , %result%, ahk_id %KeyEditHwnd%
        WinActivate, ahk_id %KeyGui%
    }
    else
    {
        Gui, keyBoard:new, hwndKeyGui, Key Board
        Gui keyBoard:+LabelkeyBoard_
        Gui, +AlwaysOnTop -Border +Caption -Disabled -LastFound -MaximizeBox -OwnDialogs +Resize +SysMenu -Theme -ToolWindow
        ; Gui, Font, s12 w400, consolas
        pic := "./keyboard.png"
        Gui, Add, Picture, w-1 h340, % pic
        Gui, Show, h356 w1075
    }

    Sleep, 200
    CapsLock2:=""
    return
}
keyBoard_Size:
WinGetPos, , ,keyBoard_W , keyBoard_H, ahk_id %KeyGui%
;  msgbox, % mathBoard_W . "#" . mathBoard_H
edit_w:=keyBoard_W-12
edit_h:=keyBoard_H-37
GuiControl, Move, %KeyEditHwnd%, w%edit_w% h%edit_h%
return

keyBoard_Close:
keyBoard_Escape:
Gui, Cancel
return
